package org.jeecg.modules.app.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.app.entity.Order;
import org.jeecg.modules.app.vo.ConsumeVO;
import org.jeecg.modules.app.vo.OrderChartVO;

import java.util.ArrayList;
import java.util.List;

/**
 * @Description: 订单
 * @Author: jeecg-boot
 * @Date:   2022-06-19
 * @Version: V1.0
 */
public interface OrderMapper extends BaseMapper<Order> {

    ArrayList<Order> findAllOrderByCustomerId(@Param("customerId") String id);

    List<ConsumeVO> selectCustomerConsumeById(String id);

    void updateOrderById(@Param("id") String id, @Param("status") String status);

    OrderChartVO selectOrderChart();
}
